package com.ts.common.util;

import java.util.Random;

public class ID {

	private static String ID_ALL = null;

	private static String TIME = null;


	private static String RAND = null;

	public static String getId() {
		TIME = Date_to.getTime();
		RAND = RandomChar.getChars(0, 6);
		ID_ALL = TIME + RAND;
		return ID_ALL;
	}
	
	
		 public static String ran() {

		 
		return   RandomChar.getChars(1, 6);

		  

		 }
		 public static String ranX() {
			  Random r = new Random();
			 Integer x = r.nextInt(999999); 
			 String s = x.toString();
			
			 return s;
				  

				 }
		 
public static void main(String[] args) {
	System.out.println(ranX());
}
		
}
